import {http} from "../httpConfig";

export const updateCustomerApi = (params) => {
    return http.post('/customer/updateCustomer', params, 'data').then(
        response => {
            return response
        }
    )
}
export const deleteCustomerByIdApi = (params) => {
    return http.get('/customer/deleteCustomerById', params).then(
        response => {
            return response
        }
    )
}

export const queryCustomerByNameApi = (params) => {
    return http.get('/customer/queryCustomerByName', params).then(
        response => {
            return response
        }
    )
}
export const queryAllCustomerApi = () => {
    return http.get('/customer/queryAllCustomer').then(
        response => {
            return response.data
        }
    )
}